import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from 'vue-router'
import router from "./router/index";
import 'font-awesome/css/font-awesome.css'
import axios from "axios"
import store from "@/store";
import VueCookies from 'vue-cookies'
import * as echarts from 'echarts';

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(VueCookies)


// headers
axios.defaults.headers.post['content-type'] = 'application/json';
Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts

new Vue({
  router:router,
  render: h => h(App),
  store:store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
